﻿namespace TestTool.Proxies.Onvif
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Xml;
    using System.Xml.Serialization;

    [Serializable, XmlType(Namespace="http://www.onvif.org/ver10/schema"), DesignerCategory("code"), GeneratedCode("svcutil", "3.0.4506.2152"), DebuggerStepThrough]
    public class VideoEncoderConfiguration : ConfigurationEntity
    {
        private XmlAttribute[] anyAttrField;
        private XmlElement[] anyField;
        private VideoEncoding encodingField;
        private H264Configuration h264Field;
        private Mpeg4Configuration mPEG4Field;
        private MulticastConfiguration multicastField;
        private float qualityField;
        private VideoRateControl rateControlField;
        private VideoResolution resolutionField;
        private string sessionTimeoutField;

        [XmlAnyElement(Order=8)]
        public XmlElement[] Any
        {
            get
            {
                return this.anyField;
            }
            set
            {
                this.anyField = value;
            }
        }

        [XmlAnyAttribute]
        public XmlAttribute[] AnyAttr
        {
            get
            {
                return this.anyAttrField;
            }
            set
            {
                this.anyAttrField = value;
            }
        }

        [XmlElement(Order=0)]
        public VideoEncoding Encoding
        {
            get
            {
                return this.encodingField;
            }
            set
            {
                this.encodingField = value;
            }
        }

        [XmlElement(Order=5)]
        public H264Configuration H264
        {
            get
            {
                return this.h264Field;
            }
            set
            {
                this.h264Field = value;
            }
        }

        [XmlElement(Order=4)]
        public Mpeg4Configuration MPEG4
        {
            get
            {
                return this.mPEG4Field;
            }
            set
            {
                this.mPEG4Field = value;
            }
        }

        [XmlElement(Order=6)]
        public MulticastConfiguration Multicast
        {
            get
            {
                return this.multicastField;
            }
            set
            {
                this.multicastField = value;
            }
        }

        [XmlElement(Order=2)]
        public float Quality
        {
            get
            {
                return this.qualityField;
            }
            set
            {
                this.qualityField = value;
            }
        }

        [XmlElement(Order=3)]
        public VideoRateControl RateControl
        {
            get
            {
                return this.rateControlField;
            }
            set
            {
                this.rateControlField = value;
            }
        }

        [XmlElement(Order=1)]
        public VideoResolution Resolution
        {
            get
            {
                return this.resolutionField;
            }
            set
            {
                this.resolutionField = value;
            }
        }

        [XmlElement(DataType="duration", Order=7)]
        public string SessionTimeout
        {
            get
            {
                return this.sessionTimeoutField;
            }
            set
            {
                this.sessionTimeoutField = value;
            }
        }
    }
}

